package com.springcloud;

import com.springcloud.serviceex.DispatchService;
import com.springcloud.serviceex.ForkliftService;

import javax.annotation.Resource;
import java.util.Timer;
import java.util.TimerTask;

public class test2 {

    public static void main(String[] args) {
//        Timer timer = new Timer();
//        ForkliftService.getInstance().startPing();
//        ForkliftService.getInstance().connect();
//        ForkliftService.getInstance().startRead();
//
////        try {
//            timer.schedule(new TimerTask() {
//                @Override
//                public void run() {
//
//                        //ascii转10
//                        String s = ForkliftService.getInstance().getActY();
//                        System.out.println(s);
//
//
//                }
//
//            }, 0, 100);
////        }catch (Exception e){
////            System.out.println("未连接plc");
////        }
////        finally {
////            ForkliftService.getInstance().stopRead();
////            ForkliftService.getInstance().disconnect();
////            ForkliftService.getInstance().stopPing();
////        }



    }
}
